package com.gitee.feizns.webtemplate.commons.upload.processor;

import com.gitee.feizns.webtemplate.commons.upload.MediaType;
import com.gitee.feizns.webtemplate.commons.upload.UploadEvent;
import com.gitee.feizns.webtemplate.commons.upload.UploadProperties;

import java.util.Map;

/**
 * @author feizns
 * @since 2019/5/15
 */
public interface Processor {

    /**
     * 哪个属性
     * @param uploadProperties
     * @return
     */
    Map<MediaType, String[]> getProperty(UploadProperties uploadProperties);

    /**
     * 写入
     * @param event
     * @param dir
     * @param properties
     */
    void write(UploadEvent event, String dir, UploadProperties properties);

}

